export const dynamicRoute = [{
    path: "/",
    component: "Layout",
    redirect: "dashboard",
    index: '/dashboard',
    meta: {
        name: '系统首页',
    },
    icon: 'el-icon-lx-home',
    children: [{
        path: "/dashboard",
        name: "dashboard",
        sort: "系统首页",
        meta: {
            name: '系统首页'
        },
        component: "page/Dashboard",

        index: '/dashboard',
        name: '系统首页'
    }, 
    ]
},
{
    icon: "el-icon-lx-addressbook",
    index: "3",
    meta: {
        name: "长者管理",
    },
    path: "/senior",
    component: "Layout",
    children: [{
            path: "/senior/user",
            name: "admit",
            meta: {
                name: '长者管理',
            },
            component: "senior/user",
        },
        {
            path: "/senior/balanceChange",
            name: "balanceChange",
            meta: {
                name: '余额变动管理',
            },
            component: "senior/balanceChange",
        },
        // {
        //     path: "/senior/integral",
        //     name: "integral",
        //     meta: {
        //         name: '积分管理',
        //     },
        //     component: "senior/integral",
        // },
    ]
},


// {
//     icon: "el-icon-lx-calendar",
//     index: "4",
//     meta: {
//         name: "服务管理",
//     },
//     path: "/service",
//     component: "Layout",
//     children: [{
//         path: "/service/service",
//         name: "service",
//         meta: {
//             name: '服务管理',
//         },
//         component: "service/service",
//     }, {
//         path: "/service/classify",
//         name: "service",
//         meta: {
//             name: '服务分类',
//         },
//         component: "service/classify",
//     }, ]
// },
{
    icon: "el-icon-lx-goods",
    index: "5",
    meta: {
        name: "商品管理",
    },
    path: "/goods",
    component: "Layout",
    children: [{
            path: "/goods/index",
            name: "goods",
            meta: {
                name: '商品管理',
            },
            component: "goods/index",
        }, {
            path: "/goods/classify",
            name: "goods",
            meta: {
                name: '商品分类',
            },
            component: "goods/classify",
        },{
            path: "/goods/scenarized",
            name: "goods",
            meta: {
                name: '商品场景化',
            },
            component: "goods/scenarized",
        },
        // {
        //     path: "/scenarioization/scenarioization",
        //     name: "good",
        //     meta: {
        //         name: '商品场景化',
        //     },
        //     component: "scenarioization/scenarioization",
        // },
        // {
        //     path: "/goods/brand",
        //     name: "goods",
        //     meta: {
        //         name: '品牌管理',
        //     },
        //     component: "goods/brand",
        // }, {
        //     path: "/goods/recovery",
        //     name: "goods",
        //     meta: {
        //         name: '商品回收站',
        //     },
        //     component: "goods/recovery",
        // }, {
        //     path: "/goods/evaluate",
        //     name: "goods",
        //     meta: {
        //         name: '商品评价',
        //     },
        //     component: "goods/evaluate",
        // }, 
    ]
},
// {
//     icon: "el-icon-lx-friend",
//     index: "3",
//     meta: {
//         name: "第三方管理",
//     },
//     path: "/thirdParty",
//     component: "Layout",
//     children: [{
//         path: "/thirdParty/thirdParty",
//         name: "thirdParty",
//         meta: {
//             name: '第三方管理',
//         },
//         component: "thirdParty/thirdParty",
//     }, ]
// },
{
    icon: "el-icon-lx-cart",
    index: "6",
    meta: {
        name: "订单管理",
    },
    path: "/order",
    component: "Layout",
    children: [{
            path: "/order/goodsOrder",
            name: "order",
            meta: {
                name: '商品订单',
                btnPermissions: ['admin', 'supper', 'normal']
            },
            component: "order/goodsOrder",
        }, {
            path: "/order/sendOrders",
            name: "order",
            meta: {
                name: '发货订单',
                btnPermissions: ['admin', 'supper', 'normal']
            },
            component: "order/sendOrders",
        },
        // {
        //     path: "/order/serviceOrder",
        //     name: "order",
        //     meta: {
        //         name: '服务订单',
        //         btnPermissions: ['admin', 'supper', 'normal']
        //     },
        //     component: "order/serviceOrder",
        // }, {
        //     path: "/order/movieOrder",
        //     name: "order",
        //     meta: {
        //         name: '电影订单',
        //         btnPermissions: ['admin', 'supper', 'normal']
        //     },
        //     component: "order/movieOrder",
        // },
        // {
        //     path: "/order/confirm",
        //     name: "confirm",
        //     meta: {
        //         name: '确认收货',
        //     },
        //     component: "order/confirm",
        // }, {
        //     path: "/order/reminder",
        //     name: "reminder",
        //     meta: {
        //         name: '到货提醒',
        //     },
        //     component: "order/reminder",
        // }, 
        // {
        //     path: "/order/orderSetting",
        //     name: "orderSetting",
        //     meta: {
        //         name: '订单设置',
        //     },
        //     component: "order/orderSetting",
        // },
        // {
        //     path: "/order/returnReason",
        //     name: "returnReason",
        //     meta: {
        //         name: '退货原因设置',
        //     },
        //     component: "order/returnReason",
        // }, {
        //     path: "/order/refund",
        //     name: "refund",
        //     meta: {
        //         name: '退款申请处理',
        //     },
        //     component: "order/refund",
        // }, {
        //     path: "/order/goodsReturn",
        //     name: "goodsReturn",
        //     meta: {
        //         name: '退货申请处理',
        //     },
        //     component: "order/goodsReturn",
        // }, 
    ]
},
{
    icon: "el-icon-lx-redpacket",
    index: "7",
    meta: {
        name: "优惠券管理",
    },
    path: "/discountCoupon",
    component: "Layout",
    children: [{
        path: "/discountCoupon/discountCoupon",
        name: "discountCoupon",
        meta: {
            name: '优惠券管理',
        },
        component: "discountCoupon/discountCoupon",
    }, ]
},
{
    icon: "el-icon-lx-punch",
    index: "8",
    meta: {
        name: "采购管理",
    },
    path: "/purchaseOrder",
    component: "Layout",
    children: [
        {
            path: "/purchaseOrder/indexPurchase",
            name: "goods",
            meta: {
                name: '采购商品列表'
            },
            component: "purchaseOrder/indexPurchase",
        },
        {
            path: "/purchaseOrder/purchaseOrder",
            name: "post",
            meta: {
                name: '采购订单'
            },
            component: "purchaseOrder/purchaseOrder",
        },
        {
            path: "/purchaseOrder/sendOrders",
            name: "post",
            meta: {
                name: '采购收货订单'
            },
            component: "purchaseOrder/sendOrders",
        },
        {
            path: "/purchaseOrder/deliveryManage",
            name: "delivery",
            meta: {
                name: '收货地址管理'
            },
            component: "purchaseOrder/deliveryManage",
        },
    ]
},
{
    icon: "el-icon-lx-people",
    index: "9",
    meta: {
        name: "人事管理",
    },
    path: "/user",
    component: "Layout",
    children: [{
            path: "/user/department",
            name: "department",
            meta: {
                name: '部门管理'
            },
            component: "user/department",
        },
        {
            path: "/user/post",
            name: "post",
            meta: {
                name: '岗位管理'
            },
            component: "user/post",
        },
        {
            path: "/user/staff",
            name: "staff",
            meta: {
                name: '员工管理'
            },
            component: "user/staff",
        },
    ]
},
{
    icon: "el-icon-lx-recharge",
    index: "55",
    meta: {
        name: "财务管理",
    },
    path: "/finance",
    component: "Layout",
    children: [{
            path: "/finance/synthesize",
            name: "finance",
            meta: {
                name: '综合统计',
            },
            component: "finance/synthesize",
        }, {
            path: "/finance/member",
            name: "finance",
            meta: {
                name: '会员排行',
            },
            component: "finance/member",
        }, {
            path: "/finance/sale",
            name: "finance",
            meta: {
                name: '销售统计',
            },
            component: "finance/sale",
        },
        // {
        //     path: "/finance/reconciliation",
        //     name: "finance",
        //     meta: {
        //         name: '对账列表',
        //     },
        //     component: "finance/reconciliation",
        // },
        {
            path: "/finance/account",
            name: "account",
            meta: {
                name: '账号管理',
            },
            component: "finance/account",
        },
        {
            path: "/finance/withdraw",
            name: "finance",
            meta: {
                name: '申请提现',
            },
            component: "finance/withdraw",
        },
        {
            path: "/finance/wdList",
            name: "finance",
            meta: {
                name: '提现申请列表',
            },
            component: "finance/wdList",
        },
    ]
},
// {
//     icon: "el-icon-lx-friend",
//     index: "3",
//     meta: {
//         name: "分销管理",
//     },
//     path: "/distribution",
//     component: "Layout",
//     children: [{
//         path: "/distribution/distribution",
//         name: "distributin",
//         meta: {
//             name: '分销员管理',
//         },
//         component: "distribution/distribution",
//     },
//     {
//         path: "/distribution/applyList",
//         name: "applyList",
//         meta: {
//             name: '分销员申请',
//         },
//         component: "distribution/applyList",
//     },
//     {
//         path: "/distribution/invitation",
//         name: "invitation",
//         meta: {
//             name: '邀请信息模板',
//         },
//         component: "distribution/invitation",
//     },
//  ]
// },

{
    icon: "el-icon-lx-settings",
    index: "10",
    meta: {
        name: "基础设置",
    },
    component: "Layout",
    path: "/basic",
    children: [
        // {
        //     path: "/basic/menu",
        //     name: "menu",
        //     meta: {
        //         name: '菜单管理'
        //     },
        //     component: "basic/menu",
        // },
        {
            path: "/basic/banner",
            name: "banner",
            meta: {
                name: 'banner管理'
            },
            component: "basic/banner",
        },
        {
            path: "/basic/paramsSetting",
            name: "tabs",
            meta: {
                name: '商城参数配置'
            },
            component: "basic/paramsSetting",
        },
        // {
        //     path: "/basic/paramsSetting1",
        //     name: "tabs",
        //     meta: {
        //         name: '本地生活参数配置'
        //     },
        //     component: "basic/paramsSetting1",
        // },

    ]
},
]